package com.msc.cili.common.page;

import lombok.Data;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

@Data
public class PageVo<T> implements Serializable {
    private PageInfo pageInfo;
    private List<T> content;
    private Map<String, Object> otherData;

    public PageVo(PageInfo pageInfo, List<T> content, Map<String, Object> otherData) {
        this.pageInfo = pageInfo;
        this.content = content;
        this.otherData = otherData;
    }

    public PageVo(PageInfo pageInfo, List<T> content) {
        this.pageInfo = pageInfo;
        this.content = content;
    }


    public PageVo(PageInfo pageInfo) {
        this.pageInfo = pageInfo;
    }

    public PageVo() {
    }
}
